package xyz.fuqufyb.aec.dao;

import org.apache.ibatis.annotations.Param;
import xyz.fuqufyb.aec.entity.Role;

import java.util.List;
import java.util.Map;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> getRolePage(Map<String, Object> maps);

    List<Role> getRoleListUserId(Integer userId);

    Integer updateAssignRole(@Param("userId") Integer userId, @Param("asList") List<Integer> asList);

    int deleteUserRoleById(@Param("userId") Integer userId);

    List<Role> getRoleList();
}